/**
 * 
 */
package com.orange.handler.expert.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.expert.AuthObservationEvaluationService;
import com.orange.modules.dao.expert.AuthObservationEvaluationRepository;
import com.orange.modules.entity.expert.AuthObservationEvaluation;

/**
 * @author gaogs
 *
 * 2016-12-2
 */
@Service
public class AuthObservationEvaluationServiceImpl implements
		AuthObservationEvaluationService {

	@Autowired
	private AuthObservationEvaluationRepository authObservationEvaluationRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthObservationEvaluationService#saveAuthObservationEvaluationInfo(com.orange.modules.entity.expert.AuthObservationEvaluation)
	 */
	@Override
	public void saveAuthObservationEvaluationInfo(AuthObservationEvaluation a) {
		authObservationEvaluationRepository.saveAuthObservationEvaluationInfo(a);

	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthObservationEvaluationService#queryAuthObservationEvaluationInfo(java.lang.String, java.lang.String)
	 */
	@Override
	public AuthObservationEvaluation queryAuthObservationEvaluationInfo(
			String schoolId, String expertId) throws SQLException {
		AuthObservationEvaluation a=authObservationEvaluationRepository.queryAuthObservationEvaluationInfo(schoolId, expertId);
		return a;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.expert.AuthObservationEvaluationService#queryAuthObservationEvaluationInfo(java.lang.String)
	 */
	@Override
	public AuthObservationEvaluation queryAuthObservationEvaluationInfo(
			String pid) {
		AuthObservationEvaluation a=authObservationEvaluationRepository.queryAuthObservationEvaluationInfo(pid);
		return a;
	}

}
